package com.fm.mediasoup.sdp;

public class Connection {
    public String ip;
    public String version;

    public Connection(){}

    public Connection(Builder builder) {
        ip = builder.ip;
        version = builder.version;
    }

    @Override
    public String toString() {
        return "Connection{" +
                "ip='" + ip + '\'' +
                ", version='" + version + '\'' +
                '}';
    }

    public static class Builder{
        public Builder setIp(String ip) {
            this.ip = ip;
            return this;
        }

        public Builder setVersion(String version) {
            this.version = version;
            return this;
        }

        private String ip;
        private String version;

        public Connection build(){
            return new Connection(this);
        }
    }

}
